package com.bytedance.common.b;

import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Point;
import android.os.Build;
import android.view.Display;
import android.view.WindowManager;

public final class b {
    static class a {
        a(byte arg1) {
            this();
        }

        private a() {

        }

        public void a(Display display, Point point) {
            point.x = display.getWidth();
            point.y = display.getHeight();
        }
    }

    static final class b$b extends a {
        b$b(byte arg1) {
            this();
        }

        private b$b() {
            super((byte) 0);
        }

        @TargetApi(value = 13)
        public final void a(Display display, Point point) {
            display.getSize(point);
        }
    }

    private static a a = Build.VERSION.SDK_INT >= 13 ? new b$b((byte) 0) : new a((byte) 0);

    public static void a(Context context, Point point) {
        b.a(((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(), point);
    }

    public static void a(Display display, Point point) {
        b.a.a(display, point);
    }
}

